package org.akomantoso.core.data.type;

/**
 * This is the list of allowed values for the contains attribute
 * 
 * <pre>
 * <xsd:simpleType name="versionType">
 *   <xsd:restriction base="xsd:string">
 * 		<xsd:enumeration value="originalVersion"/>
 * 		<xsd:enumeration value="singleVersion"/>
 * 		<xsd:enumeration value="multipleVersions"/>
 * 	 </xsd:restriction>
 * </xsd:simpleType>
 * </pre>
 * 
 * @author <a href="mailto:jacques.militello@gmail.com">Jacques Militello</a>
 * 
 * @since http://www.akomantoso.org/1.0
 * 
 */
public enum VersionType {

	originalVersion, singleVersion, multipleVersions;
	
	public static VersionType checkValueOf(String name) {
		if (name == null) {
			return null;
		}
		return valueOf(name);
	}
}